import _Fetch from '@/server/Fetch'
import { API_POST_COURSE_INFO } from '@/api/college/get_off_line_course_detail_info'
import { API_POST_COURSE_LOWER } from '@/api/college/get_off_line_course_detail_comment'
import { API_POST_MY_TOGGLE_LICK } from '@/api/user/getMyCollect'
export async function course_detail_api(id: number) {
  return await _Fetch(API_POST_COURSE_INFO, {
    id,
  })
}

export async function get_comment_list_api(params: any) {
  return await _Fetch(API_POST_COURSE_LOWER, {
    id: params.id,
    pageNum: params.pageNum,
    pageSize: params.pageSize,
  })
}
export async function toggle_lick_api(id: number, type: number) {
  return await _Fetch(API_POST_MY_TOGGLE_LICK, {
    id,
    type,
  })
}
